---
title: "create · RUAL Documentation"
description: "Creates a new function that can be executed using the given name."
canonical: https://docs.rual.nl/block-types/globals,function execution/trigger_custom_function
language: en
---

# create

This block is part of the [`globals`](https://docs.rual.nl/block-types/globals) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Creates a new function that can be executed using the given name.

- flow `flow`

| `custom function` |
| --- |

Every custom function starts with a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function): public functions are callable from other blueprints, private ones only within their own. The flow runs through the function body, here an [execute](https://docs.rual.nl/block-types/function execution/function_custom_execute) of another function, and ends at [return](https://docs.rual.nl/block-types/function execution/function_return).

![Studio canvas example for the create block: a custom function from trigger to return.](https://docs.rual.nl/canvas-examples/trigger_custom_function.png)

### Commonly used with

One of the most-used blocks across production blueprints. It is most often wired together with:

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): this block feeds into it. Gets the selected fields from the given object.

- [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute): this block feeds into it. Executes the given funcion and waits for it to be executed.

- [get document](https://docs.rual.nl/block-types/storage/function_get_document): this block feeds into it. get a specific document based on the given GUID.

- [search](https://docs.rual.nl/block-types/storage/function_search): this block feeds into it. searches in the given storage based on a query.

- [branch](https://docs.rual.nl/block-types/flow/branch): this block feeds into it.

- [set fields](https://docs.rual.nl/block-types/mutations/mutations_set_bp_field_multiple): this block feeds into it. Generates an array of mutations based on the given filled fields.

### Used in these guides

These documentation pages use or explain this block:

- [Block Templates, Combinations That Work](https://docs.rual.nl/block-types/block-templates)

- [Block Quick Reference](https://docs.rual.nl/reference/block-quick-reference)

- [Choosing Your Approach](https://docs.rual.nl/architecture/choosing-approaches)

- [Finding Blocks](https://docs.rual.nl/block-types/finding-blocks)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
